package org.example.myleet.p1035;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.maxUncrossedLines(new int[]{1,4,2}, new int[]{1,2,4}));
        Assert.isTrue(3 == solution.maxUncrossedLines(new int[]{2,5,1,2,5}, new int[]{10,5,2,1,5,2}));
        Assert.isTrue(2 == solution.maxUncrossedLines(new int[]{1,3,7,1,7,5}, new int[]{1,9,2,5,1}));
        Assert.isTrue(2 == solution.maxUncrossedLines(new int[]{1,2,3,4,5,6,7,8}, new int[]{8,7,6,5,4,1,3}));
    }
}
